package com.steellee.leeexcel;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.core.io.ClassPathResource;

import java.io.FileInputStream;
import java.io.IOException;

public class PaExcelReadFailReturnDemo extends Parent {
    @Autowired
    private PaExcelRead operate;

    public FileInputStream getFalseInputStream() throws IOException {
        String excelPath = System.getProperty("file.separator") + "template" + System.getProperty("file.separator") + "excelAnalysisFalse.xlsx";
        FileInputStream ins = new FileInputStream((new ClassPathResource(excelPath)).getFile());
        return ins;
    }
}